<?php 

include './function.php';

$id = isset($_GET['id']) ? $_GET['id'] : '';

if($id){
	$db = include './db.php';

	unset($db[$id]);

	$str = var_export($db,True);

	$str = "<?php return ".$str."?>";

	file_put_contents('./db.php', $str);

	header("Location: ./index.php"); 
}else{
	error('./index.php','非法请求，删除失败');
}



//下面是实现删除功能











 ?>